package com.pcjavanet.collect.mes.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.pcjavanet.collect.mes.to.ContinuousOriginalData;
import com.pcjavanet.collect.mes.to.DiscreteOriginalData;
import com.pcjavanet.collect.mes.to.ParetoData;
import com.pcjavanet.domain.SPCObject;

/**
 * provider interface for getting MES DB Schema data
 * this function has the same OrigalDataDao. OrigalDataDao access archive_SFDCIII database
 * @author Jack MO
 *
 */
public interface OriginalMesDataDao {

 
	/**
	 * get origal data 
	 * @param monitor Monitor bean
	 * @param lastGroupTime  last update time ,it is seconds from 1970-01-01 00:00:00
	 * @return origial data
	 * @throws DataAccessException
	 */
	public List<DiscreteOriginalData> getDiscreteOriginalData(SPCObject monitor, int lastGroupTime) throws DataAccessException;
 
	/**
	 * 
	 * @param monitor
	 * @return
	 * @throws DataAccessException
	 */
	public List<ContinuousOriginalData> getContinuousOriginalData(SPCObject monitor) throws DataAccessException;
	
	public List<DiscreteOriginalData> getDefectDiscreteOriginalData(SPCObject monitor, int lastGroupTime, long lastDataTime)	throws DataAccessException;
	 
	public List<ParetoData> getParetoOriginalData(SPCObject monitor,	int lastGroupTime);
	 
 
}
